﻿Public Class NhanVienSX
    Inherits NhanVien

    Private _SoSP As Integer
    Public Property SoSP() As Integer
        Get
            Return _SoSP
        End Get
        Set(ByVal value As Integer)
            _SoSP = value
        End Set
    End Property
    Public Overrides Sub Nhap()
        MyBase.Nhap()
        Console.Write("Nhap So San Pham: ")
        _SoSP = Convert.ToDouble(Console.ReadLine)
    End Sub
    Public Overrides Sub Xuat()
        MyBase.Xuat()
        Console.WriteLine(", so san pham: {0}", _SoSP)
        Console.WriteLine(", Nhan Vien SX")
    End Sub
    Public Overrides Function TinhLuong() As Double
        Return MyBase.TinhLuong() + _SoSP * 2000
    End Function
End Class
